import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import*
testCase18='DBshop018_删除属性组流程'
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'商品管理','商品属性','属性分组')#进入属性分组
firefox.find_elements_by_link_text('删除')[0].click()# 删除
firefox.switch_to.alert.accept()#处理java弹窗

time.sleep(3)
try:
    firefox.find_element_by_xpath('//td[text()="好好学习"]')
    writeLog("%s 测试不通过" % testCase18)
    getPhoto(firefox)
except:
    writeLog("%s 测试通过" % testCase18)

firefox.quit()

